package com.bjim;

/**
 * API 返回类，定义了返回的结构
 * @author chen
 *
 */
public class AResult {
	private static int CODE=0;
	private static int ERROR_CODE=-1;
	private int code=0;
	private String msg;
	private Object result;
	public AResult(){
		this.code=CODE;
	}
	public AResult(String msg){
		this.code=ERROR_CODE;
		this.msg=msg;
	}
	public AResult(Object result){
		this.code=CODE;
		this.result=result;
	}
	public int getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
	public Object getResult() {
		return result;
	}
	
	

}
